package com.fac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fac.entity.RepairOrder;
import com.fac.vo.MaintenanceStatVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

/**
 * 维修订单Mapper接口
 */
public interface RepairOrderMapper extends BaseMapper<RepairOrder> {
    List<RepairOrder> selectByDateRange(LocalDate startDate, LocalDate endDate);

    List<MaintenanceStatVO.EquipmentRanking> getEquipmentFaultRanking(LocalDate startDate, LocalDate endDate);
}